#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2024/3/11 11:58
# @Author  : jeff
# @FileName: dir
import os

# Get the project root directory address
current_dir = os.path.dirname(os.path.abspath(__file__))
root_dir = os.path.abspath(os.path.join(
    os.path.abspath(os.path.join(current_dir, '..'))
    , '..')
)

# Picture address directory
photo_path = os.path.normpath(os.path.join(root_dir, 'data/photo'))
# Environment configuration address
env_path = os.path.normpath(os.path.join(root_dir, 'env.ini'))
# Template path
templates_path = os.path.normpath(os.path.join(root_dir, 'templates'))

if __name__ == '__main__':
    print(root_dir)
